package DAO;

public class NameToCode {

    public String CodeWorkClass(String str) {
        if (str.equalsIgnoreCase("Normal")) {
            return "01";
        }
        if (str.equalsIgnoreCase("Absent")) {
            return "02";
        }
        return "03";
    }

    public String CodeStartClass(String str) {
        if (str.equals("No Setting")) {
            return "00";
        }
        if (str.equals("Normal")) {
            return "01";
        }
        if (str.equals("Late")) {
            return "02";
        }
        if (str.equals("Morning Absent")) {
            return "03";
        }

        return "04";

    }

    public String CodeEndClass(String str) {
        if (str.equals("No Setting")) {
            return "00";
        }
        if (str.equals("Normal")) {
            return "01";
        }
        if (str.equals("Early")) {
            return "02";
        }
        if (str.equals("Afternoon Absent")) {
            return "03";
        }

        return "04";

    }
    
   
}
